﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BestLifePOS_Core.Data.Commands;
using BestLifePOS_Core.DomainObjects;

namespace BestLifePOS_Core.Data.Fascade
{
   public class SupplierDAO
    {

       public static string GetNewVendorId()
       {
           BestLifeGetNewVendorIdDataAction LvGet = new BestLifeGetNewVendorIdDataAction();
           return LvGet.execute();
       }

       public static int SaveNewSupplier(Supplier PSupplier)
       {
           BestLifeInsertNewVendorDataAction LvGet = new BestLifeInsertNewVendorDataAction(PSupplier);
           return LvGet.execute();
       }

       public static List<Supplier> GetAllSupplier()
       {
           BestLifeGetAllSupplierDataAction LvGet = new BestLifeGetAllSupplierDataAction();
           return LvGet.execute();
       }

       public static List<Supplier> GetSupplierBySupID(string PSupId)
       {
           BestLifeGetSupplierBySupIDDataAction LvGet = new BestLifeGetSupplierBySupIDDataAction(PSupId);
           return LvGet.execute();
       }

    }
}
